package com.wg.core.annotation;

import com.wg.core.event.Event;

import java.lang.annotation.*;

/**
 * @author 少爷123
 */
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface EventListener {
    Class<? extends Event> value() default Event.class;

    /**
     * 是否异步调用
     *
     * @return true 是 false
     */
    boolean isAsyn() default true;
}
